home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / QT2MPEG.ZIP / mov2mpg.txt < prev    next >
Text File  |  1994-12-27  |  4KB  |  95 lines

  1. Newsgroups: alt.binaries.multimedia
  2. From: cvrij@cs.vu.nl (C. van Rij)
  3. Subject: Qt to MPEG
  4. Date: Sat, 20 Aug 1994 19:37:34 GMT
  5.  
  6. Converting 24-bit QuickTime to MPEG + .wav
  7.  
  8. To use this method you need these 2 packages:
  9.  
  10. <a href=ftp://ftp.shell.portal.com/pub/podlipec>Xanim</a>
  11. Package by Mark Podlipec.
  12. This program will play QuickTime and AVI files encoded with a number
  13. of different compression techniques.
  14.  
  15. <a href=ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg>mpeg_encode</a>
  16. >from Berkeley; This proves to be a flexible solution for encoding
  17. Video Only MPEG-streams, with varying frames sequence (I/P/B).
  18.  
  19. -A diff which adds the -ppm, -raw, and -au options to xanim. It was
  20.  written for xanim2.69.3, but seems to work on xanim2.69.6.
  21.  
  22. -A diff which adds the -wait option to the Berkeley MPEG_Encoder; Written
  23.  for version 1.3, no other versions tested.
  24.  
  25. -mkwav, A small C-program to add a valid .wav (RIFF) header to raw
  26.  audio-data. compile with:  cc mkwav.c -o mkwav
  27.  
  28. Using the patches
  29.  
  30. If you're going to use these patches I suggest you try to compile the
  31. xanim and mpeg_encode first. MPEG_Encode shouldn't be any problem, 
  32. xanim might be more difficult depending on the platform you're working on.
  33. If you're running one of the platforms where sound is supported, 
  34. uncomment the relevant lines in the Imakefile.
  35.  
  36. Once you have both programs compiled/working, apply the patches.
  37. You should now be able to use -ppm, -au, or -raw with xanim, 
  38. and -wait with mpeg_encode.
  39.  
  40. Conversion procedure.
  41. First set up the parameter file for MPEG_Encode. (Example file at end of
  42. this article)
  43.  
  44. You should probably only change the OUTPUT and INPUT_DIR fields,
  45. and change the range specified as [0-2537] to whatever you need.
  46. INPUT_DIR should be the directory from where you'll start xanim.
  47. (which is also where the frames will be written.)
  48.  
  49. Running xanim with -ppm and optionally +f should give you 10 ppm frames.
  50. This is a good time to check the quality with something like xv.
  51. If the picture doesn't look quite right, play the QuickTime file
  52. with the options +CF4 rather than -ppm. If this looks better, please
  53. inform me about the problem.
  54.  
  55. You can then start mpeg_encode with -wait and the name of your parameter
  56. file specified; If the INPUT_DIR is set-up correctly, mpeg_encode will
  57. start reading the frames, and generating t
  58. (I am still looking for a 24-bit AVI file to test avi -> mpeg, btw)
  59.  
  60. Note: xanim will wait for mpeg_encode to remove files before continuing,
  61. so no more than 10 frames will be present at one time. If you want to start
  62. with a frame other than 0, you'll have to remove the leading frames
  63. manually.
  64.  
  65. Getting the sound
  66. If you are running xanim on a platform with sound support, you can
  67. specify either -raw or -au, other platforms only support -raw.
  68. -raw writes the sound as present in the quicktime file, -au attempts
  69. to convert it to regular .au format.
  70. Running xanim with this option will give you an xanim.{au|raw} file,
  71. and on stderr the SampleRate, SampleSize, and Number of Channels.
  72. You can use mkwav to turn the .au format into .wav (Uncompressed)
  73. Run mkwav like:
  74.  
  75.         mkwav xanim.raw tempest.wav
  76.  
  77. this will prompt you for SampleRate, NrOfChannels, and SampleSize.
  78. If you do not specify an outputfile, mkwav will come-up with something,
  79. if you don't specify an inputfile, mkwav will prompt you for it.
  80.  
  81. Enjoy!
  82.  
  83. ============== diff file for xanim ===========================
  84. see xanim.diff 
  85. ============= diff file for mpeg_encode ==========================
  86. see mpeg_encode.diff 
  87. ================= code for mkwav  =====================
  88. see mkwav.diff 
  89. =================  example parameter file  ==================
  90. see example.par
  91.  
  92. -- 
  93. Casey Ryder      Vrije Universiteit Amsterdam    ++312503-16844 CET
  94. http://www.cs.vu.nl/~cvrij          The MultiMedia Experience
  95.